<%@ include file="sessionCheck.jsp"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Bookmark Add</title>
<link rel="stylesheet" type="text/css" href="ubms.css" media="screen" />
<script language="javaScript">
function checkBox() {
	if (document.regform.sharecheck.checked) {
		document.regform.bookmarkshare.value = "Y";
	} else {
		document.regform.bookmarkshare.value = "N";
	}
}
</script>
</head>
<body>
<h3>Bookmark Add</h3>
<form name="regform" action="bookmarkAdd.jsp" method="post">
	<table class="tab_add">
		<tr>
			<td width="30%">Name</td>
			<td width="70%"><input class="input_1" type="text" name="bookmarkname"/></td>
		</tr>
		<tr>
			<td>URL</td>
			<td><input class="input_1" type="text" name="bookmarkurl"/></td>
		</tr>
		<tr>
			<td>Description</td>
			<td><input class="input_1" type="text" name="bookmarkdescription"/></td>
		</tr>
		<tr>
			<td>Tag</td>
			<td><input class="input_1" type="text" name="bookmarktag"/></td>
		</tr>
		<tr>
			<td>Share</td>
			<td><input class="input_1" type="checkbox" name="sharecheck" onClick="checkBox();" checked/></td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="hidden" name="bookmarkshare" value="Y"/>
				<input type="submit" value="Register">
			</td>
		</tr>	
</form>
</body>
</html>